<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page isELIgnored="false" %>
<%@ include file="top.jsp"%>
<html >
<head>
    <base href="${basePath}">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>竞拍页</title>
<link href="css/common.css" rel="stylesheet" type="text/css" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div class="wrap">
<!-- main begin-->
  <div class="sale">
    <h1 class="lf">在线拍卖系统</h1>
    <div class="logout right"><a href="#" title="注销">注销</a></div>
  </div>
  <div class="items sg-font lf">
      <ul class="rows">
        <li>名称：</li>
        <li class="borderno">${count.auctionname}</li>
      </ul>
      <ul class="rows">
        <li>描述：</li>
        <li class="borderno">${count.auctiondesc}</li>
      </ul>
      <ul class="rows">
        <li>开始时间：</li>
        <li class="borderno"> <fmt:formatDate value="${count.auctionstarttime}" pattern="yyyy-MM-dd HH:mm:ss"/></li>
      </ul>
      <ul class="rows">
        <li>结束时间：</li>
        <li class="borderno"> <fmt:formatDate value="${count.auctionendtime}" pattern="yyyy-MM-dd HH:mm:ss"/></li>
      </ul>
      <ul class="rows border-no">
        <li>起拍价：</li>
        <li class="borderno">${count.auctionstartprice}</li>
      </ul>
  </div>
  <div class="rg borders"><img src="images/ad20.jpg" width="270" height="185" alt="" /></div>
  <div class="cl"></div>
  <div class="top10 salebd">

      <form action="do/auction/auctionResult" method="post" target="_blank">
       <p>
       <label for="sale">出价：</label>
           <input type="text" name="startPrice" dirname="" hidden="hidden" value="${count.auctionstartprice}">
           <input type="text" name="auctionid" dirname="" hidden="hidden" value="${count.auctionid}">
       <input name="price" type="text"  class="inputwd" id="sale" value=""/>
       <input  name="" type="submit" value="竞 拍" class="spbg buttombg f14  sale-buttom" />
       </p>
      </form>

       <p class="f14 red">不能低于最高竞拍价</p>
  </div>
  <div class="top10">
    <input name="" type="submit" value="刷 新" class="spbg buttombg f14" />
    <input name="" type="submit" value="返回列表" class="spbg buttombg f14" />
  </div>
  <div class="offer">
    <h3>出价记录</h3>
    <div class="items sg-font">
      <ul class="rows even strong">
        <li>竞拍时间</li>
        <li>竞拍价格</li>
        <li class="borderno">竞拍人</li>
      </ul>
        <c:forEach items="${count2}" var="count2">
      <ul class="rows">
        <li> <fmt:formatDate value="${count2.auctiontime}" pattern="yyyy-MM-dd HH:mm:ss"/></li>
        <li>${count2. auctionprice}</li>
          <li class="borderno">
              <c:forEach items="${user}" var="user">
                  ${user.username}<br/> <!-- 或者你可以使用其他方式分隔用户名，比如逗号 -->
              </c:forEach>
          </li>
      </ul>
        </c:forEach>
  </div>
  </div>
<!-- main end-->
</div>
</body>
</html>
